# 开发环境
ENV = 'DEV'

CONTEXT_PATH = '/cvpr_ds'

SECRET_KEY = "09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7"
ALGORITHM = "HS256"

if ENV == 'DEV':
    # neo4j 配置
    NEO_CONFIG = {
        'uri': 'neo4j://192.168.1.145:7687',
        'user': 'neo4j',
        'pswd': 'test'
    }

    # mysql 配置
    MYSQL_CONFIG = {
        # dialect[+driver]://user:password@host/dbname[?key=value..]
        'url': 'mysql+mysqlconnector://root:ahucm@localhost:3306/taxonomy_web'
    }

elif ENV == 'ON':
    # neo4j 配置
    NEO_CONFIG = {
        'uri': 'neo4j://192.168.1.145:7687',
        'user': 'neo4j',
        'pswd': 'test'
    }

    # mysql 配置
    MYSQL_CONFIG = {
        # dialect[+driver]://user:password@host/dbname[?key=value..]
        'url': 'mysql+mysqlconnector://root:EBn&tm7iOHMcKvQj@localhost:3306/cvpr'
    }
